﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using Xyz.BusinessObjects.Validation;

namespace Xyz.BusinessObjects
{
    public class Customer : BusinessObject
	{
        public Customer()
        {
            AddRule(new ValidateMandatory("UserName"));
        }

        public int CustomerId { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public int RoleId { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Gender { get; set; }
        public DateTime DateOfBirth { get; set; }
        public List<Booking> Bookings { get; set; }
	}
}


